<include file="Public:head" title="服务列表"/>

<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('Service/lists')}">服务管理</a></li>
                    <li class="active">服务列表</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="header smaller lighter blue">
                                    <div class="nav-search col-xs-10" id="nav-search">
                                        <form class="form-search" method="get">
                                            <div class="search_area">
                                             
                                              
                                               <select name="is_check" autocomplete="off">
                                                    <option value="">请选择是否开启</option>
                                              <option value="0"<if condition="$is_check eq 0 && $is_check neq ''">selected</if>>否</option>
                                                           <option value="1"<if condition="$is_check eq 1">selected</if>>是</option>
                                            </select>
                                                <input class="form-control search-query" type="text" name="keyword" autocomplete="off"  placeholder="请输入服务名称" value="{$Think.get.keyword}">
                                                <button class="btn btn-purple btn-sm" type="submit">搜 索 <i class="icon_search icon-on-right bigger-110"></i></button>
                                            </div>
                                        </form>
                                    </div>
                                    <div class='cl'></div>
                                </div>
                                <notempty name='lists'>
                                    <div class="table-responsive">
                                        <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                            <thead>
                                                <tr>
                                                    <th width='45px' class="center">ID</th>
                                                    <th>服务名称</th>
                                                    <th>服务器属性</th>
                                                    <th>价格</th>
                                                    <th width="120px">原始价格</th>
                                                    <th width="120px">成本价格</th>
                                                    <!--<th width="75px">是否开启</th>-->
                                                    <th width="115px">操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="lists" item="row">
                                                <tr>
                                                    <td class="center">{$row.id}</td>
                                                    <td>{$row.name|msubstr=0,32,'utf-8',true}</td>
                                                    <td> cpu:{$row.cpu}核 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;磁盘:{$row.disk}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ip:{$row.ip}个&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;带宽：{$row.wide}M</td>
                                                    <td>{$row.memory}</td>
                                                    <td>{$row.price_orginal}</td>
                                                    <td>{$row.price_cost}</td>
                                                    <!--<td id="is_check_{$row.id}"><a onclick="yes('{$row.id}', 'service', 'is_check')"><if condition="$row.is_check eq 1">是<else/><span style="color:red">否</span></if></a></td>-->
                                                    <td class="action-buttons">
                                                         <a class="green" href="{:U('Servers/cats_detail',array('id'=>$row['id']))}" data-rel="tooltip" data-original-title="编辑"><i class="icon-pencil bigger-130"></i></a>
                                                    </td>
                                                </tr>
                                            </foreach>
                                            </tbody>
                                        </table>
                                    </div>
                                    <div id="grid-pager" class="ui-state-default  ui-corner-bottom" dir="ltr">
                                        <table width='100%' data-table='modals'  id='modal_del_table'>
                                            <tr>
                                                <td>
                                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                        <a class="purple" href="{:U('Service/cats_detail')}" data-rel="tooltip" data-original-title="添加套餐">
                                                            <i class="icon-plus-sign bigger-130"></i>
                                                        </a>
                                                       
                                                    </div>
                                                </td>
                                                <td class='td_pager'><div class='pager'>{$page}</div></td>
                                            </tr>
                                        </table>
                                    </div>
                                    <else/>
                                    <p class='noempty'>没有符合条件的记录！</p>
                                </notempty>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Public:setting" />
    </div>
    <script src="__PUBLIC__/plugins/layer/layer.js"></script>
    <script>
        function show_packages_list(url){
            layer.open({
                type: 2,
                title: '服务套餐列表',
                shadeClose: true,
                shade: 0.8,
                area: ['800px', '60%'],
                content: url //iframe的url
            });
        }
    </script>
</div>
<include file="Public:state" />
<include file="Public:foot" />